package com.zntg.bo;
import com.zntg.entity.CrmAcceDtlEntity;
import com.zntg.utils.string.StringUtil;

/**
*@tablename CRM_ACCE_DTL
*@author zhengyunfei
*@createDate Tue Jan 22 11:17:07 CST 2019
*/
public class CrmAcceDtlBo implements java.io.Serializable{
	private String lStorageid;
	private String cFilename;
	private String cCatalog;
	private String cSubkeyid;
	private String appFilename;
	private String fileUrl;
	private String loadDate;
	private String dCreatedate;
	public String getlStorageid() {
		return lStorageid;
	}

	public void setlStorageid(String lStorageid) {
		this.lStorageid = lStorageid;
	}

	public String getcFilename() {
		return cFilename;
	}

	public void setcFilename(String cFilename) {
		this.cFilename = cFilename;
	}

	public String getcCatalog() {
		return cCatalog;
	}

	public void setcCatalog(String cCatalog) {
		this.cCatalog = cCatalog;
	}

	public String getcSubkeyid() {
		return cSubkeyid;
	}

	public void setcSubkeyid(String cSubkeyid) {
		this.cSubkeyid = cSubkeyid;
	}

	public String getAppFilename() {
		return appFilename;
	}

	public void setAppFilename(String appFilename) {
		this.appFilename = appFilename;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public String getLoadDate() {
		return loadDate;
	}

	public void setLoadDate(String loadDate) {
		this.loadDate = loadDate;
	}

	public String getdCreatedate() {
		return dCreatedate;
	}

	public void setdCreatedate(String dCreatedate) {
		this.dCreatedate = dCreatedate;
	}

	public static CrmAcceDtlEntity boToEntity(CrmAcceDtlBo bo){
		CrmAcceDtlEntity entity=new CrmAcceDtlEntity();
		entity.setLStorageid(bo.getlStorageid());
		entity.setCFilename(bo.getcFilename());
		entity.setCCatalog(bo.getcCatalog());
		entity.setCSubkeyid(bo.getcSubkeyid());
		entity.setAppFilename(bo.getAppFilename());
		entity.setFileUrl(bo.getFileUrl());
		entity.setLoadDate(bo.getLoadDate());
		entity.setDCreatedate(bo.getdCreatedate());
		return entity;
	}
	public static CrmAcceDtlBo entityToBo(CrmAcceDtlEntity entity){
		CrmAcceDtlBo bo=new CrmAcceDtlBo();
		entity.setLStorageid(bo.getlStorageid());
		entity.setCFilename(bo.getcFilename());
		entity.setCCatalog(bo.getcCatalog());
		entity.setCSubkeyid(bo.getcSubkeyid());
		entity.setAppFilename(bo.getAppFilename());
		entity.setFileUrl(bo.getFileUrl());
		entity.setLoadDate(bo.getLoadDate());
		entity.setDCreatedate(bo.getdCreatedate());
		return bo;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("lStorageid")){
					result="L_STORAGEID";
				}
				if(field.equals("cFilename")){
					result="C_FILENAME";
				}
				if(field.equals("cCatalog")){
					result="C_CATALOG";
				}
				if(field.equals("cSubkeyid")){
					result="C_SUBKEYID";
				}
				if(field.equals("appFilename")){
					result="APP_FILENAME";
				}
				if(field.equals("fileUrl")){
					result="FILE_URL";
				}
				if(field.equals("loadDate")){
					result="LOAD_DATE";
				}
				if(field.equals("dCreatedate")){
					result="D_CREATEDATE";
				}
		}
		return result;
	}
}

